import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 FdsMaterialUsageRuleset 分页列表
 */
export function getFdsMaterialUsageRulesetPagination(data: any) {
  return axios.get(`${context}/fdsMaterialUsageRuleset/pagination`, {
    params: data,
  })
}

/**
 * 获取 FdsMaterialUsageRuleset 所有数据
 */
export function getFdsMaterialUsageRulesetAllList(data: any) {
  return axios.get(`${context}/fdsMaterialUsageRuleset/allList`, {
    params: data,
  })
}

/**
 * 获取 FdsMaterialUsageRuleset 详情
 */
export function getFdsMaterialUsageRulesetDetailById(id: any) {
  return axios.get(`${context}/fdsMaterialUsageRuleset/${id}`, {
    params: { id },
  })
}

/**
 * 新增 FdsMaterialUsageRuleset
 */
export function addFdsMaterialUsageRuleset(data: any) {
  return axios.post(`${context}/fdsMaterialUsageRuleset`, data)
}

/**
 * 修改 FdsMaterialUsageRuleset
 */
export function updateFdsMaterialUsageRuleset(data: any) {
  return axios.put(`${context}/fdsMaterialUsageRuleset`, data)
}

/**
 * 删除 FdsMaterialUsageRuleset
 */
export function batchRemoveFdsMaterialUsageRuleset(data: any) {
  return axios.post(`${context}/fdsMaterialUsageRuleset/batchRemove`, data)
}
